/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tcpserver;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;

/**
 *
 * @author makkalot
 */
class MyAL implements ActionListener
{

   boolean active = true;

   public void actionPerformed(ActionEvent ae) {
     if(active) {
        // do your event handling here
         System.out.println("Im activated");
         
         
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                
                    JOptionPane.showMessageDialog(null,
                        "This dialog box is run from the About menu item");
                   
                
            }
        });

         
         
         System.out.println("Im activated ohoo");
     }
     }
   

    

   void deactivate()
   {
     this.active = false;
   }

    void active() {
        System.out.println("Im activated");
    }



    
} 